﻿using AutoMapper;
using ControlCenter.Model;
using System;

namespace ControlCenter.ApplicationService
{
    /// <summary>
    /// AutoMapper关系配置
    /// </summary>
    public class ApplicationAutoMapperProfile : Profile
    {
        /// <summary>
        /// 
        /// </summary>
        public ApplicationAutoMapperProfile()
        {
            CreateMap<PackageInfoDto, ProjectPackageInfo>()
            .ForMember(dest => dest.PackageId, opt => opt.MapFrom(src => Guid.NewGuid()));

        }
    }
}
